# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-passwordsafe
pkgver=7.3
pkgrel=1
pkgdesc="password manager for GNOME"
url="https://gitlab.gnome.org/World/secrets"
# s390x blocked by py3-keepass
arch="noarch !s390x"
license="GPL-3.0-only"
depends="
	libadwaita
	py3-cairo
	py3-gobject3
	py3-keepass>=4.0.1
	py3-libpwquality
	py3-otp>=2.4.0
	py3-pycryptodomex
	py3-validators
	py3-zxcvbn
	python3
	"
makedepends="
	desktop-file-utils
	gobject-introspection-dev
	gtk4.0-dev
	libadwaita-dev
	libpwquality-dev
	meson
	"
checkdepends="
	appstream-glib
	desktop-file-utils
	"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/World/secrets/-/archive/${pkgver/_/.}/secrets-${pkgver/_/.}.tar.bz2"
builddir="$srcdir/secrets-${pkgver/_/.}"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
4390707908f6cde9d971e06892afcaacc710b91c00e344068acf9ec4796c1e1d8b1aa716fc92916a35a9f7beaefde2d752c16a2f55d24451027de823f575bdcf  secrets-7.3.tar.bz2
"
